import { network } from '@/utils';
import { basic } from '../../../../../config/Apis';
import { outUserListParams, addOutUserParams } from './data';

export async function queryBookingCourierList(params: { cabinetId: number, loadUser?: number }) {
  params.loadUser = 1;
  return network.get(basic.cabReserveRel_list, { params });
}

export async function deleteCourier(params: { id: number }) {
  return network.deleter(basic.cabReserveRel, { params });
}

export async function outUserList(params: outUserListParams) {
  return network.get(basic.outUser_list, { params });
}

export async function operAddOutUser(params: addOutUserParams) {
  return network.post(basic.cabReserveRel, { data: params });
}
